﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace simDC
{
    class Compiler
    {
        FileStream fs;
        BinaryWriter bw;

        //Compiler(Dictionary<Instruction, Int32> instD, Dictionary<String, Object> dataL)
        Compiler(Parser p)
        {
            String path = "bla.exe";
            fs = new FileStream(path, FileMode.OpenOrCreate,
                                                FileAccess.Write);
            bw = new BinaryWriter(fs);
            //bw.Write(MyData);
           

        }
        public void CloseFile() 
        {
            bw.Close();
            fs.Close();
        
        }


        public void WriteHeader(ProgramSector p, int nr) 
        {
            /*byte[] b = null;

            b = BitConverter.GetBytes(3678);
            Console.WriteLine(BitConverter.ToString(b));*/
        }
    }
}
